package com.jx.lcs.marketTemplate.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * @author 陈新雷 2015年8月3日下午1:17:42
 *
 */
@Entity
@Table(name = "tb_market_template")
@DynamicInsert
@DynamicUpdate
public class MarketTemplate implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String tempname;
	private String temptype;
	private String imgurl;
	private String simgurl;
	private String tempurl;
	private String publishstatus;
	private String status;
	private Integer orderNum;
	private Date recordtime = new Date();

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID", unique = true, nullable = false)
	public String getId() {
		return id;
	}

	@Column(name = "TEMPNAME")
	public String getTempname() {
		return tempname;
	}

	@Column(name = "TEMPTYPE")
	public String getTemptype() {
		return temptype;
	}

	@Column(name = "IMGURL")
	public String getImgurl() {
		return imgurl;
	}

	@Column(name = "TEMPURL")
	public String getTempurl() {
		return tempurl;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return status;
	}

	@Column(name = "RECORDTIME")
	public Date getRecordtime() {
		return recordtime;
	}

	@Column(name = "PUBLISHSTATUS")
	public String getPublishstatus() {
		return publishstatus;
	}

	@Column(name = "SIMGURL")
	public String getSimgurl() {
		return simgurl;
	}

	public void setSimgurl(String simgurl) {
		this.simgurl = simgurl;
	}

	public void setPublishstatus(String publishstatus) {
		this.publishstatus = publishstatus;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setTempname(String tempname) {
		this.tempname = tempname;
	}

	public void setTemptype(String temptype) {
		this.temptype = temptype;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public void setTempurl(String tempurl) {
		this.tempurl = tempurl;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setRecordtime(Date recordtime) {
		this.recordtime = recordtime;
	}

	@Column(name = "ORDERNUM")
	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

}
